﻿using AiShow.BLL;
using AiShow.Common;
using Quartz;
using System.Threading.Tasks;

namespace AiShow.WebSite
{
     internal class SyncVideosJob:IJob
    {
        
        /// <summary>
        /// 执行
        /// </summary>
        /// <param name="context">context</param>
        /// <returns></returns>
        public async Task Execute(IJobExecutionContext context)
        {
            VideoManager videoManager = new VideoManager();
            OperResult<int> syncResult = await videoManager.SyncVideos();
            // 日志记录
            //log.Info("已同步"+ syncResult.ReadResult() + "条数据，时间："+ DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
        }
    }
}